package com.odm.communitymanage.ui.health

import com.odm.communitymanage.core.bean.HealthSituationOptions
import com.odm.watercard.base.BaseViewModel

/**
 * @description: 健康管理 ViewModel
 * @author: ODM
 * @date: 2020/4/14
 */
class HealthViewModel  : BaseViewModel(){

    var temperatureList : MutableList<HealthSituationOptions> = mutableListOf()
    var sickList : MutableList<HealthSituationOptions> = mutableListOf()

    var temperatureOption : Int = -1
    var sickSelected : MutableSet<Int> = mutableSetOf()

    init {
        initTemperatureList()
        initSickList()
    }

    private fun initTemperatureList(){
        temperatureList.apply {
            add(HealthSituationOptions("正常：37.3℃以下"))
            add(HealthSituationOptions("低热：37.3℃~37.9℃"))
            add(HealthSituationOptions("中热：38.0~39.0℃"))
            add(HealthSituationOptions("高热：39.0℃以上"))
        }
    }

    private fun initSickList(){
        sickList.apply {
            add(HealthSituationOptions("无"))
            add(HealthSituationOptions("感冒样症状：乏力、精神差、咳嗽、发烧、肌肉痛、头痛"))
            add(HealthSituationOptions("喘憋、呼吸急促"))
            add(HealthSituationOptions("恶心呕吐、腹泻"))
            add(HealthSituationOptions("心慌、胸闷"))
        }
    }



}